package sxt.mapper;


import sxt.entity.Announcement;

import java.util.Date;
import java.util.List;

public interface AnnouncementMapper {
    //查找所有公告
    List<Announcement> selectAll();

    //插入指定公告C
    int insertAnnocement(String announcement, Date date);

    //查询指定公告R
    Announcement selectOneAnnouncement(int id);

    //修改指定公告U
    int updateAnnouncement(int id,String announcement);

    //删除指定公告D
    int deleteAnnouncement(int id);

}
